package com.xin.di.uav.common.request.operate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author LTQ
 * @since 2023-08-16
 */
@Data
@ApiModel(value = "新增Activity对象", description = "活动表")
public class ActivityAddRequest implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty("活动名称")
    private String activityName;

    @ApiModelProperty("开始活动时间")
    @NotNull(message = "开始时间不能为空")
    private Date startActivityTime;

    @ApiModelProperty("结束活动时间")
    @NotNull(message = "结束时间不能为空")
    private Date endActivityTime;

    @ApiModelProperty("奖励类型")
    private Integer rewardType;

    @ApiModelProperty("奖励规则")
    private String rewardRule;

    @ApiModelProperty("处理人")
    private String processedBy;

    @ApiModelProperty("奖励金额")
    private BigDecimal rewardAmount;

    @ApiModelProperty("奖励规则列表")
    @NotEmpty(message = "奖励规则不能为空")
    @Valid
    private List<ActivityRewardRulesRequest> rulesRequests;


}
